<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<title>分享</title>
	<link rel="stylesheet" href="/layui/layui.css">
	<link rel="stylesheet" href="/css/HyqPublic.css">
	<link rel="stylesheet" href="/css/StoreCodeShare.css">
</head>
<body>
	<div class="public_Pop_container">
		<h3 class="public_PopTitle">分享</h3>
		<div class="public_PopTips_container">
			<svg t="1622540008125" class="icon" viewBox="0 0 1025 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4204" width="14" height="14"><path d="M595.138 889.173c16.52 0 29.914 13.393 29.914 29.913 0 16.521-13.393 29.914-29.914 29.914H436.563c-16.52 0-29.914-13.393-29.914-29.914 0-16.52 13.393-29.913 29.914-29.913h158.575z m-494.224-66.73C84.393 822.442 71 809.05 71 792.528s13.393-29.914 29.914-29.914h98.828V474.698c0-165.138 126.17-300.806 287.37-315.869l0.001-58.942C487.113 83.38 500.494 70 517 70s29.887 13.38 29.887 29.887l0.001 58.942c161.2 15.063 287.37 150.731 287.37 315.869l-0.001 287.917h98.83c16.52 0 29.913 13.393 29.913 29.914 0 16.52-13.393 29.913-29.914 29.913H100.914z" fill="#1990ff" p-id="4205"></path></svg>
			<p>可将下方链接复制后用于【客户群发】、【好友欢迎语】、【渠道活码】等场景，客户即可就近入群，方便企业精准运营</p>
		</div>
		<div class="PopShare_main_container">
			<div class="PopShare_mainLeft_container">
				<div class="PopShare_mainPublicTitle_container">
					<h3 class="PopShare_main_PublicTitle_container">方式一：</h3>
					<span class="PopShare_main_PublicText_container">页面二维码</span>
				</div>
				<img src="{$create_qrcode}">
			</div>
			<div class="PopShare_mainRight_container">
				<div class="PopShare_mainPublicTitle_container">
					<h3 class="PopShare_main_PublicTitle_container">方式一：</h3>
					<span class="PopShare_main_PublicText_container">页面链接</span>
				</div>
				<div class="PopShare_mainRight_copy_container">
					{$url}
				</div>
			</div>
		</div>
		<div class="public_PopMain_container layui-form">
			<div class="public_formSubmit_conainer">
				<button class="layui-btn layui-btn-primary" id="send_code" data-id="{$id}">下载二维码</button>
				<button class="layui-btn layui-btn-normal" data-clipboard-text="{$url}" id="CopyLink">复制页面链接</button>
			</div>
		</div>
	</div>
	<!-- <form class="layui-form" action="">
		
	</form> -->
	<script src="/cdn/jquery.min.js"></script>
	<script src="/layui/layui.all.js"></script>
	<!-- 复制粘贴 -->
	<script src="/cdn/clipboard.js"></script>
	<script type="text/javascript">
		var clipboard = new ClipboardJS('#CopyLink');

		clipboard.on('success', function(e) {
		    layer.msg('复制成功');
		    console.info(e.text);
		});

		clipboard.on('error', function(e) {
		    console.error('Action:', e.action);
		    console.error('Trigger:', e.trigger);
		});

		$("#send_code").on("click",function(){
			var id = $(this).data("id");
			window.location.href="download_qrcode-"+id+".html";
		})
	</script>
</body>
</html>